const odooModelName = 'ems.order'

const fields_default = {}

const detail_columns = [
  'state__name',
  'date',
  'company_id__name',
  'partner_id__name',
  'unit_amount',
  'quantity',
  'total_amount',
  'name'
]

const formItems = ['name', 'date', 'partner_id', 'quantity']

const workflow = {
  transfers: {
    draft: {
      actions: []
    },
    confirm: {
      actions: []
    },
    deliver: {
      actions: ['recieve', 'cancel']
    },
    recieve: {
      actions: []
    },
    post: {
      actions: []
    },
    done: {
      actions: []
    },
    cancel: {
      actions: []
    }
  }
}
const Model = {
  name: odooModelName,

  configs: {
    workflow,
    fields_default,
    detail_columns,
    formItems,
    handle: {
      edit: { hidden: true }
    }
  }
}

export default Model
